import request from '@/utils/request'

export function getDayData(params) {
  return request({
    url: '/us/user/homepage/getCountData',
    method: 'get',
    params: { tenantId: params }
  })
}

export function getCourseOrder(time, tenantId) {
  return request({
    url: '/us/user/homepage/getCourseOrder',
    method: 'get',
    params: { time: time, tenantId: tenantId }
  })
}

export function getQuestionAndEvaluate(params) {
  return request({
    url: '/us/user/homepage/getQuestionAndEvaluate',
    method: 'get',
    params: { tenantId: params }
  })
}

export function remindTeacher(data) {
  return request({
    url: '/us/user/eduxcloudMessage/remindTeacher',
    method: 'post',
    data
  })
}

export function getOrderData(time, tenantId) {
  return request({
    url: '/us/user/homepage/getOrderData',
    method: 'get',
    params: { time: time, tenantId: tenantId }
  })
}

export function getPayOrderData(time, tenantId) {
  return request({
    url: '/us/user/homepage/getPayOrderData',
    method: 'get',
    params: { time: time, tenantId: tenantId }
  })
}

export function getFinishTask(time, tenantId) {
  return request({
    url: '/us/user/homepage/getFinishTask',
    method: 'get',
    params: { time: time, tenantId: tenantId }
  })
}

export function getFirstContent(tenantId) {
  return request({
    url: '/us/user/homepage/getFirstContent',
    method: 'get',
    params: { tenantId: tenantId }
  })
}
